package usr 
{
	/**
	 * ...
	 * @author ...
	 */
	public class WCTehnik 
	{
		public var _id:Number;
		public var _pin:Number;
		public var _role:Array;
		public var _data:Array = new Array();
		
		public function WCTehnik(id:Number=1234,pin:Number=4321,role:Array=null,data:Array=null) 
		{
			_id = id;
			_pin = pin;
			_role = role;
			_data = data;
		}
		
		public function toString():String {
			return "WCTehnik" + _id + "pin" + _pin + "r" + _role.join("|") + "w"+_data.join("|");
		}
		
		public function checkRole(rl:Number):Boolean {
			for (var ii:Number = 0; ii < _role.length; ii++ ) {
				if (_role[ii] == rl) return true;
			}
			return false;
		}
		
	}

}